﻿package com.sz.common;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.*;

public interface ICommonDAO {
	
	@SuppressWarnings("unchecked")
	public List queryForList(String sql) throws SQLException;
	
	public Object queryForObject(String sql) throws SQLException;
	
	@SuppressWarnings("unchecked")
	public List getDicValueList(String dic_name) throws SQLException;
	
	/*
	 * 动态取配置的SQL
	 */
	public String getDynamicSql(String id, Object obj) throws SQLException;
	
	public Connection getConnection() throws SQLException;
}
